//
//  KYcpLikeCollectionCell2.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "KYcpLikeCollectionCell2.h"
#import "FitHeader.h"
#import "FontSizeSingleTon.h"
#define Font [[FontSizeSingleTon shareFontSize]array]

@implementation KYcpLikeCollectionCell2
-(instancetype)initWithFrame:(CGRect)frame
{//这是首页自定义cell猜你喜欢的第二种带图片的cell
    self = [super initWithFrame:frame];
    
    if (self) {
        _cookImage = [[UIImageView alloc]init];
        _cookImage.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_cookImage];
        
        _titleLabel = [[UILabel alloc]init];
//        _titleLabel.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _cookImage.frame = CGRectMake(0, 0, 115 * wt, 100 * ht);
    _titleLabel.frame = CGRectMake(0, 100 * ht, _cookImage.frame.size.width, 15 * ht);
    _titleLabel.font = [UIFont systemFontOfSize:[Font[2] integerValue]];
    
}
@end
